package cn.k.service;

import cn.k.domain.SystemDictionary;
import cn.k.qo.QueryObject;
import cn.k.qo.SystemDictionaryQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface ISystemDictionaryService {
    void insert(SystemDictionary systemDictionary);

    void delete(Long id);

    void update(SystemDictionary systemDictionary);

    SystemDictionary get(Long id);

    List<SystemDictionary> selectAll();

    List<SystemDictionary> selectForList(SystemDictionaryQueryObject qo);

    PageInfo<SystemDictionary> query(SystemDictionaryQueryObject qo);

    //查询树状结构的数据
    List<Map> queryTreeData();

    //根据大类绑定id
    List<SystemDictionary> queryByService(String sn);

    //查询指定父id的数据字典明细
    List<SystemDictionary> queryByParentId(Long parentId);
}
